package com.vector.server.mapper;

import com.vector.server.pojo.Department;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.vector.server.pojo.RespBean;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Acerola
 * @since 2021-08-21
 */
@Repository
@Mapper
public interface DepartmentMapper extends BaseMapper<Department> {

    //获取所有部门
    List<Department> getAllDepartments(Integer parentId);
    //添加部门
    void addDep(Department department);
    //删除部门
    void deleteDep(Department department);
}
